package io_0927;

import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description: list -> 列出当前目录有哪些文件.
 * Date: 2022-09-28
 * Time: 12:01
 */
public class Demo6 {
    public static void main(String[] args) {
        File file = new File("./testIO2");
        String[] result = file.list(); // 列出当前目录有哪些文件.
        System.out.println(Arrays.toString(result));
    }
}
